using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools._TINDataset._Conversion
{
    /// <summary>
    /// <para>TIN Domain</para>
    /// <para>Creates a line or polygon feature class representing the interpolation zone of a triangulated irregular network (TIN) dataset.</para>
    /// <para>创建表示三角不规则网络 （TIN） 数据集插值区域的线或面要素类。</para>
    /// </summary>    
    [DisplayName("TIN Domain")]
    public class TinDomain : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public TinDomain()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_tin">
        /// <para>Input TIN</para>
        /// <para>The TIN dataset to process.</para>
        /// <para>要处理的 TIN 数据集。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The feature class that will be produced.</para>
        /// <para>将生成的要素类。</para>
        /// </param>
        /// <param name="_out_geometry_type">
        /// <para>Output Feature Class Type</para>
        /// <para><xdoc>
        ///   <para>The geometry of the output feature class.</para>
        ///   <bulletList>
        ///     <bullet_item>Line—The output will be a z-enabled line feature class.</bullet_item><para/>
        ///     <bullet_item>Polygon—The output will be a z-enabled polygon feature class.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出要素类的几何。</para>
        ///   <bulletList>
        ///     <bullet_item>线 - 输出将为启用 z 的线要素类。</bullet_item><para/>
        ///     <bullet_item>面—输出将为启用 z 的面要素类。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// </param>
        public TinDomain(object _in_tin, object _out_feature_class, _out_geometry_type_value _out_geometry_type)
        {
            this._in_tin = _in_tin;
            this._out_feature_class = _out_feature_class;
            this._out_geometry_type = _out_geometry_type;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "TIN Domain";

        public override string CallName => "3d.TinDomain";

        public override List<string> AcceptEnvironments => ["XYDomain", "XYResolution", "XYTolerance", "ZDomain", "ZResolution", "ZTolerance", "autoCommit", "extent", "geographicTransformations", "outputCoordinateSystem", "workspace"];

        public override object[] ParameterInfo => [_in_tin, _out_feature_class, _out_geometry_type.GetGPValue()];

        /// <summary>
        /// <para>Input TIN</para>
        /// <para>The TIN dataset to process.</para>
        /// <para>要处理的 TIN 数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input TIN")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_tin { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The feature class that will be produced.</para>
        /// <para>将生成的要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Output Feature Class Type</para>
        /// <para><xdoc>
        ///   <para>The geometry of the output feature class.</para>
        ///   <bulletList>
        ///     <bullet_item>Line—The output will be a z-enabled line feature class.</bullet_item><para/>
        ///     <bullet_item>Polygon—The output will be a z-enabled polygon feature class.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出要素类的几何。</para>
        ///   <bulletList>
        ///     <bullet_item>线 - 输出将为启用 z 的线要素类。</bullet_item><para/>
        ///     <bullet_item>面—输出将为启用 z 的面要素类。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class Type")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _out_geometry_type_value _out_geometry_type { get; set; }

        public enum _out_geometry_type_value
        {
            /// <summary>
            /// <para>Line</para>
            /// <para>Line—The output will be a z-enabled line feature class.</para>
            /// <para>线 - 输出将为启用 z 的线要素类。</para>
            /// </summary>
            [Description("Line")]
            [GPEnumValue("LINE")]
            _LINE,

            /// <summary>
            /// <para>Polygon</para>
            /// <para>Polygon—The output will be a z-enabled polygon feature class.</para>
            /// <para>面—输出将为启用 z 的面要素类。</para>
            /// </summary>
            [Description("Polygon")]
            [GPEnumValue("POLYGON")]
            _POLYGON,

        }

        public TinDomain SetEnv(object XYDomain = null, object XYResolution = null, object XYTolerance = null, object ZDomain = null, object ZResolution = null, object ZTolerance = null, int? autoCommit = null, object extent = null, object geographicTransformations = null, object outputCoordinateSystem = null, object workspace = null)
        {
            base.SetEnv(XYDomain: XYDomain, XYResolution: XYResolution, XYTolerance: XYTolerance, ZDomain: ZDomain, ZResolution: ZResolution, ZTolerance: ZTolerance, autoCommit: autoCommit, extent: extent, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, workspace: workspace);
            return this;
        }

    }

}